﻿/*
 * 
 * Description: Office COMAddins Connector office object library dispatcher
 */
#ifndef OCC_CEXCELAPPLICATION_H
#define OCC_CEXCELAPPLICATION_H

namespace {
constexpr const DWORD DISPID_EXCELAPP_GET_COMADDINS = 0x704;
}

class CExcelApplication : public COleDispatchDriver {
public:
    CExcelApplication() {}
    CExcelApplication(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
    CExcelApplication(const CExcelApplication &dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
    LPDISPATCH get_COMAddIns()
    {
        LPDISPATCH result;
        InvokeHelper(DISPID_EXCELAPP_GET_COMADDINS, DISPATCH_PROPERTYGET, VT_DISPATCH, (void *)&result, nullptr);
        return result;
    }
};

#endif  // !OCC_CEXCELAPPLICATION_H